package com.cslg.questionnaires.mapper;

import com.cslg.questionnaires.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TeacherMapper {
    @Select("SELECT * FROM teacher WHERE account = #{account}")
    Teacher getTeacherByAccount(String account);

    @Select("SELECT * FROM teacher WHERE id = #{id}")
    Teacher getTeacherById(int id);
}
